package src.zhuzi.spring.aop;

public class Test {
	public static void main(String[] args) {
		/**
		 * 静态代理
		 */
		/*ICalFaberRicci icf = new CalFaberRicciProxy(new CalFaberRicciImpl());
		long n = 40;
		System.out.println(icf.calFaberRicciByLoop(n));
		System.out.println(icf.calFaberRicciByRecursion(n));*/
		
		/**
		 * 动态代理
		 */
		ICalFaberRicci icf = (ICalFaberRicci) PerformProxy.getInstance(new CalFaberRicciImpl());
		icf.calFaberRicciByLoop(40);
		icf.calFaberRicciByRecursion(40);
	}
}